A Smart Compressor